/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * appdata.h
 * Copyright (C) The Pennsylvania State University 2008 <tpk5010@psu.edu>
 * 
 * appdata.h is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* appdata.h defines the struct _AppData, which provides handles to global
   application data, such as the HildonProgram, the HildonWindow, and the
   osso context. The AppUIData struct, defined in interface.h, containes a
   AppData element
*/

#ifndef APPDATA_H
#define APPDATA_H
#include <glade/glade.h>
#include <libosso.h>
#include <location/location-gps-device.h>
#include <location/location-gpsd-control.h>

typedef struct _AppData AppData;
struct _AppData {
	
    HildonProgram *program; /* handle to application */
    HildonWindow *window; /* handle to app's window */
    osso_context_t *osso; /* handle to osso */
	GladeXML *gxml; /* handle to app's .glade file */
	LocationGPSDevice *gpsdevice; /* to gps device */
	LocationGPSDControl *gpscontrol;
};

#endif
